package teleradiologia.service;

import teleradiologia.domain.Address;
import teleradiologia.repository.AddressDao;

public class AddressManipulatorImpl implements AddressManipulator {

	private AddressDao addressDao;
	
	@Override
	public long create(Address address) {
		return this.addressDao.create(address);
	}

	@Override
	public void delete(Address address) {
		this.addressDao.delete(address);
	}


	@Override
	public Address getById(long id) {
		return this.addressDao.getById(id);
	}

	@Override
	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	@Override
	public void update(Address address) {
		this.addressDao.update(address);
	}

}
